# 从键盘获取十个数字, 
# 打印小于10的数相加的结果
a = 0
f = 0
while a < 10:
    number = int(input())
    if number < 10:
        f += number
    a+=1
print(f)
    